package org.jeecg.modules.fk.service.impl;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.fk.entity.IndexManage;
import org.jeecg.modules.fk.mapper.IndexManageMapper;
import org.jeecg.modules.fk.service.IIndexManageService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
//@DS("fk_oracle")
public class IndexManageServiceImpl extends ServiceImpl<IndexManageMapper, IndexManage>
implements IIndexManageService {

    @Override
    public List<IndexManage> queryIndexListByIds(List<Long> ids) {
        return listByIds(ids);
    }

    @Override
    public Integer listByZblx(String value) {
        LambdaQueryWrapper<IndexManage> wrapper = Wrappers.lambdaQuery(IndexManage.class);
        wrapper.eq(IndexManage::getIndexType,value);
        return super.count(wrapper);
    }
}
